import http from "@/api/http";

class RoleApi {
  readonly url = "";
  constructor(url: String) {
    this.url = url;
  }
  list = <T>(params: any): Promise<T> => {
    return http.get(this.url + "/list", params);
  };

  kick = <T>(token: String): Promise<T> => {
    return http.delete(this.url + "/kick", { token });
  };
}
export default new RoleApi("/system/user-online");
